//
//  M4BankCardCell.swift
//  M4
//
//  Created by YuChuang on 2024/8/21.
//

import UIKit

class M4BankCardCell: M4BaseTableViewCell {
    
    @IBOutlet weak var M4BankCardName: UILabel!
    
    @IBOutlet weak var M4BankCardNo: UILabel!
    
    @IBOutlet weak var M4BankCardHolderName: UILabel!
    

    override func awakeFromNib() {
        super.awakeFromNib()
        
    }

    override func M4UpdateDataAndUI() {
        let data = data as? M4BankListModel
        M4BankCardName.text = data?.QroFb
        M4BankCardNo.text = M4String.M4StringBlank(originalStr: data?.MpLhEfItt ?? "")
        M4BankCardHolderName.text = data?.ILeRqUStnqr
    }
    
    override func M4CellTopEdge() -> CGFloat {
        return 10
    }
    
    @IBAction func M4SelectBankClick(_ sender: UIButton) {
        M4CellActionDelegate?.M4CellAction(M4IDAction(actionType: 0, actionData: data))
        sender.M4EventUnavailable = false
    }
    
    
}
